/**
 * @desc
 * 类似于nfs机制 ..
 * 首页只保存一个有效的.
 *
 * @使用场景
 *
 * @author  杨晓东[of1081]
 * @company qianmi.com
 * @Date    2017/6/14
 **/

import * as mongoose from "mongoose";

//创建集合模式
let PageResorcesSchema: mongoose.Schema = new mongoose.Schema({
    systemCode:{type: String,  required: true},
    platform:{type: String,  required: true},
    uid: {type: String,  required: true},
    pageType: {type: String,  required: true},
    pageCode: {type: String,  required: true},
    url: {type: String,required: true},
    version: {type: String,required: true},
    resourceType: {type: String,  "enum": ["js", "css"]},
    pageRelInfo:{}
});


export default mongoose.model('rn_page_resources', PageResorcesSchema);